from django.db import models


# Create your models here.
class User(models.Model):
    id = models.AutoField(primary_key=True)
    username = models.CharField(max_length=15)
    password = models.CharField(max_length=18)
    def __str__(self):
        return self.username

class BookInfo(models.Model):
    id = models.AutoField(primary_key=True)
    bookname = models.CharField(max_length=15)
    author = models.CharField(max_length=50)
    price = models.IntegerField()
    date = models.IntegerField()
    def __str__(self):
        return self.bookname